home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_100
/
157_01
/
qedpc.doc
< prev
next >
Wrap
Text File
|
1987-10-10
|
23KB
|
510 lines
QED VERSION: 1.22
LAST COMPILE DATE: 15 DECEMBER 1987
DOCUMENTATION DATE: 13 APRIL 1987
PCDOS VERSION: 2.1 AND HIGHER
AUTHORS: Nigel Gilbert and James Haefner
---------------------------------------------------------------------
TABLE OF CONTENTS
I. GENERAL DESCRIPTION
II. HOW TO RUN QED WITHOUT READING THE MANUAL
III. COMMAND LINE INVOCATION
IV. DEFINITION OF CONTROL KEYS
A. CURSOR MOVEMENT
B. BLOCK MOVES (Save, Exit, Move text)
C. DELETIONS
D. "QUICK" MOVES (Find/Alter, Defaults, File manipulation)
E. PARAGRAPH REFORM
F. VERSION DOCUMENTATION
V. TRICKS
A. UNDO
B. INSERTING ESCAPE SEQUENCES INTO TEXT
C. EDITING SEARCH LINES
D. DEFAULT FILE EXTENSIONS
E. JUMPS
F. MARKING TEXT
VI. BUGS
VII. TABLE OF CONTROL CHARACTERS
---------------------------------------------------------------------
I. GENERAL DESCRIPTION
QED is a public domain editor originally written in C by
Nigel Gilbert of England. His version was written in BDS C
(trademark) for microcomputers running CP/M versions 2.x and 3.0.
The original Gilbert version is available from the C User's Group
(McPherson, Kansas). I (J. Haefner) made major modifications to
this original code for CP/M, ported these modifications to MSDOS and
PCDOS. QED comes in a variety of flavors depending on the target
computer; QEDPC is the version that runs on IBM-PCs and compatibles.
Below, QED and QEDPC are synonymous.
QED is a full-screen editor that it attempts to duplicate the
user interface of WordStar (tm) as closely as possible, with
"improvements" as I have seen fit. (As a full- screen editor, it
bears no resemblence to line editors such as EDLIN or SOS.) There
are no "modes" in the sense of some screen editors in which one must
explicitly choose a "command" mode or a "input" mode. In QED, one
is always in an "input" mode; commands to the editor that are not
text to be inserted in the file are keyed in as control characters
(i.e., characters transmitted by typing the "control key" and
certain alphabetic and punctuation keys simultaneously, usually
symbolized as ^x, where x is a character, e.g., ^C).
QED is intended primarily as an editor for creating programs or
keying in numerical data. As such, it has some features of interest
to programmers and lacks many features of word processors.
Obviously, it can also be used to create files of text to be sent to
a text formatter such as RUNOFF. For the programmers, QED has
auto-indent, "jump to" a line, an extensive list of command line
options, search and replace, reformatting of indented program text,
and an "expert" mode. It also has automatic word-wrap at a
prescribed screen column setting and the ability to reform
paragraphs to fit within a prescribed column setting. It lacks,
alas, right justification, and printing formatting facilities. QED
produces "straight ASCII" files, i.e., files containing no special
formatting codes or printing control character sequences. As a
result, QED is well-suited for creating files required by other
applications or programs (e.g., OMNIPLOT plotting package, data
entry for statistical programs, etc.).
II. HOW TO RUN QED WITHOUT READING THE MANUAL
1. QEDPC occupies only 37K of disk space, so it can easily
reside on any disk, drive A or B.
2. If you are a beginner, you will want the non-expert
mode and the on-screen help to be permanently displayed.
Assuming this, invoke QEDPC to begin a new file with:
A>QEDPC -E -V
(The "A>" is the PCDOS prompt indicating drive A as the default
drive, of course.) This will present you with a status line at the
top of the screen, about 6 lines of help messages, and the cursor
over the point at which text may be inserted.
3. Insert text by typing any of the printable ASCII
characters. Hit the "RETURN" key at the end of each line (no
automatic word-wrap).
4. To save the text as a file type ^K (CTRL and K
simultaneously). This will prompt you with a verbose, but
informative instruction. To save the text and leave QEDPC, respond
with Q, then W (after the prompt), then the file name (after the
prompt), then E (after the prompt). In short, the sequence is
^KQWE.
5. To edit an existing file invoke QEDPC this way:
A>QEDPC filename -E -V
This will display a message reminding you of the name
of the program you just typed, followed, after clearing the
screen, by the first 23 lines of text of the file. QEDPC cannot
distinguish text files from non-text files; therefore, garbage
will appear if you attempt to edit an EXE file, or any other non-text
file.
6. To move around in the file, type the control characters
as indicated on the on-screen help (^QO), and as more fully described
below (in the manual!). QEDPC has no "overwrite" mode, one is
always inserting text, pushing existing text ahead of the cursor.
Explicit deletion is required to remove this text. Exiting the
editing session is the same as above.
III. COMMAND LINE INVOCATION
The official syntax of QEDPC 1.22 is:
QEDPC [-Jn -A -B -L -H -R -Mn -Tn -S -U -V -E -X -Dd [filename1 [filename2]]]
"[]" indicates optional input. "Filename1" is an optional file
which QEDPC is to read in and "filename2" is an optional file to
which QEDPC is to save any editing changes made. If "filename2" is
absent, "filename1" is used. Each letter in the command line is an
option that configures the "context" or "environment" of the current
editing session. They have the following meanings and defaults []:
-Jn: Jump to line n [1]
-A : Autoindent on carriage return [YES]
-B : Make backup file on exit (filename.bak) [YES]
-L : Show line and column on statusline [YES]
-H : Horizontal scroll entire screen [NO]
-R : Read entire file on initial load [YES]
-Mn: Margin (right) set to n [255]
-Tn: Set tabwidth to n [4]
-S : Strip trailing blanks and tabs [YES]
-U : Update version and date [YES]
-V : Display onscreen help [NO]
-E : Expert (terse) mode [YES]
-X : Warm boot on exit [YES]
-Dd: Drive d for temporary paging files [current]
Options and filename1 may occur in any order; filename2 must
follow filename1. Upper and lower case may be used in any
combination.
Examples:
QEDPC -j400 -e -T8 FOO.BAR foo2.bar
This will invoke the version of QEDPC, will turn the expert
mode off (-e), set the tabs to 8 spaces (-T8), read from FOO.BAR and
write to FOO2.BAR, and jump to line 400 (-j400).
QEDPC
This will load QEDPC and present the user with a blank screen
for data input.
IV. DEFINITION OF CONTROL KEYS
A complete map of the functions of all control keys (^x)
is at the end of this documentation. Two (^Q and ^K) have no
immediate effect, but prompt for more command input (see below).
Typing ESC (escape key) at a prompt will cancel the request and
usually returns the cursor to the text being edited.
A. CURSOR MOVEMENT
Cursor movement is controlled using control characters. The
association of function with control key follows, in general, the
pattern of WordStar (tm). For the most part, the function of
control keys reachable from the left hand is identical to
WordStar: the keys A-E-F-X form a diamond where the top of the
diamond produces movement upwards, the left-side produces
leftward movement, and so on. Vertical scrolling which leaves
the cursor in place is implemented via ^W (scroll up through
file) and ^Z (down). ^Y and ^V moves the cursor to the top and
bottom, respectively, of the screen. ^U and ^B moves the cursor
to the top and bottom, respectively, of the file. Thus, for the
left side of the keyboard there exists a relatively uniform and
mnemonic mapping of ke